<template>
  <div class="warning-point">
    <div class="point">
      <img :src="`/images/map_${item.disasterCode}.png`" alt="" srcset="" />
    </div>
    <p class="warning-point-label">
      <span>{{ item.disasterType }}</span>
    </p>
  </div>
</template>

<script setup lang="ts">
const props = defineProps(['item'])
</script>

<style scoped lang="scss">
.warning-point {
  display: flex;
  align-items: center;
  flex-direction: column;

  .point {
    width: 47px;
    height: 67px;
    text-align: center;
    padding-top: 10px;
    background: url('@/assets/images/disasterpoint.png') no-repeat;

    img {
      width: 23px;
      height: 21px;
      /* width: 100%;
      height: auto; */
    }
  }

  .warning-point-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    span {
      width: 100px;
      font-size: 14px;
      font-weight: bold;
      color: orange;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      text-align: center;
      text-shadow: #fff 1px 0 0, #fff 0 1px 0, #fff -1px 0 0, #fff 0 -1px 0;
    }
  }
}
</style>
